<div class="contentArea">
    <div class="Item hr">
        <div class="current">小说详情</div>
    </div>
    <form>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
            <tr>
                <th width="80">小说名称：</th>
                <td><input name="data[title]" type="text" class="input" size="30" value="{$novel['title']}" /></td>
            </tr>
            <tr>
                <th width="80">小说作者：</th>
                <td><input name="data[author]" type="text" class="input" size="30" value="{$novel['author']}" /></td>
            </tr>
            <tr>
                <th width="80">小说简介：</th>
                <td><textarea class="jq_watermark" rows = "5" cols="68" name="data[intro]">{$novel['intro']}</textarea></td>
            </tr>
            <tr>
                <th width="80">来源名称：</th>
                <td><input name="data[source_addr]" type="text" class="input" size="30" value="{$novel['source_addr']}" /></td>
            </tr>
            <tr>
                <th width="80">来源网址：</th>
                <td><input name="data[source_url]" type="text" class="input" size="30" value="{$novel['source_url']}" /></td>
            </tr>
            <tr>
                <th width="80">总字数：</th>
                <td><input name="data[words_number]" type="text"  class="input" size="30" value="{$novel['words_number']}" /></td>
            </tr>
            <tr>
                <th width="80">所属分类：</th>
                <td>
                    <select name="data[class_id]">
                        <option value="">请选择分类</option>
                        <foreach name="class_list" item="val">
                            <option value="{$val.id}" <?php echo $novel['class_id'] == $val['id']?"selected":"";?>>{$val.class_name}</option>
                        </foreach>
                    </select>
                </td>
            </tr>

            <tr>
                <th width="80">适合人群：</th>
                <td>
                    <input name="data[fit_crowd]" type="radio" <?php echo $novel['fit_crowd']==0?"checked":"";?> value="0">男女都行</input>&nbsp;&nbsp;&nbsp;
                    <input name="data[fit_crowd]" type="radio" <?php echo $novel['fit_crowd']==1?"checked":"";?> value="1">男</input>&nbsp;&nbsp;&nbsp;
                    <input name="data[fit_crowd]" type="radio" <?php echo $novel['fit_crowd']==2?"checked":"";?> value="2">女</input>
                </td>
            </tr>

            <tr>
                <th width="90">封面：</th>
                <td>
                    <img src="{$novel.cover}" style="width: 180px;height: 240px;" /></br></br>
                    <input type="file" id="cover" name="cover">
                </td>
            </tr>

            <tr>
                <th width="80">小说标签：</th>
                <td><input name="data[label]" type="text" class="input" size="30" value="{$novel['label']}" /><a style="color: red;">（多个标签用"|"分割开，格式：标签1|标签2|标签3）</a></td>
            </tr>

            <tr>
                <th width="100">组合查询分类：</th>
                <td>
                    <select name="data[search_item_id]">
                        <option value="">请选择分类</option>
                        <foreach name="search_class" item="val">
                            <option value="{$val.id}" <?php echo $novel['search_item_id'] == $val['id']?"selected":"";?>>{$val.name}</option>
                        </foreach>
                    </select>
                </td>
            </tr>

            <tr>
                <th width="100">组合查询字数组：</th>
                <td>
                    <select name="data[word_arr_id]">
                        <option value="">请选择字数组</option>
                        <foreach name="number_arr" item="val">
                            <option value="{$val.id}" <?php echo $novel['word_arr_id'] == $val['id']?"selected":"";?>>{$val.name}</option>
                        </foreach>
                    </select>
                </td>
            </tr>

            <tr>
                <th width="80">是否审核通过：</th>
                <td>
                    <input name="data[is_pass]" type="radio" <?php echo $novel['is_pass']==1?"checked":"";?> value="1">通过</input>&nbsp;&nbsp;&nbsp;
                    <input name="data[is_pass]" type="radio" <?php echo $novel['is_pass']==0?"checked":"";?> value="0">不通过</input>&nbsp;&nbsp;&nbsp;
                </td>
            </tr>
            <input type="hidden" name="data[id]" value="{$novel['id']}" />
        </table>
    </form>
    <div class="commonBtnArea" >
        <button class="btn submit">提交</button>
    </div>

</div>
<script type="text/javascript">
    $(".submit").click(function(){
        commonAjaxSubmit("{:U('Novel/update')}");
    });
</script>

